package main

import (
	"fmt"
	"gorm-study/src/pkg/student/models"
	"gorm-study/src/pkg/utils/dbutil"
)

func main() {
	var count int64
	result := dbutil.DB.Model(&models.Student{}).Count(&count) // 传指针

	fmt.Printf("result.RowsAffected：%v \n", result.RowsAffected)
	fmt.Printf("count：%v \n", count)
}
